package cn.cdeden.knowledge.mapper;

import cn.cdeden.knowledge.domain.FilesLabelRecord;
import cn.cdeden.knowledge.domain.vo.FilesLabelRecordVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FilesLabelRecordMapper extends BaseMapper<FilesLabelRecord> {

    List<FilesLabelRecordVo> querySelect(@Param("userId") String userId , @Param("fileType") String fileType,
                                         @Param("fileId") String fileId, @Param("labelId") String labelId ,
                                         @Param("labelType") String labelType, @Param("teamId") String teamId);

    IPage<FilesLabelRecordVo> querySelect(@Param("userId") String userId , @Param("fileType") String fileType,
                                          @Param("fileId") String fileId, @Param("labelId") String labelId ,
                                          @Param("labelType") String labelType, @Param("teamId") String teamId ,
                                          @Param("page") IPage<FilesLabelRecordVo> page);

}
